/*
 * Created on Mar 31, 2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package littlecyberwar.model;

import java.io.*;
import java.awt.geom.AffineTransform;
import javax.swing.*;
import java.awt.*;

import littlecyberwar.model.*;
import littlecyberwar.tool.*;


/**
 * @author Milton  Soong
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class UnitAttributeCommand extends Command implements Serializable {
	  Integer unitId;
	  String AttributeName;	// the name of the attribute that's changed
	  Integer value;		// the new updated attribute value (for now always an integer)

	  /**
	   * This field is optional. It's only inserted here if it has changed from
	   * previous position.
	   */
	  //Shape newFinalShape;

	  public UnitAttributeCommand(
		Integer unitIdIn,
		String AttributeNameIn,	// the name of the attribute that's changed
		Integer valueIn		// the new updated attribute value (for now always an integer)
		) {
		unitId = unitIdIn;
		AttributeName = AttributeNameIn;	
		value = valueIn;		
	  }
  
	public int getType() {
	  return ( _commandType_attribChange );
	}

	/**
	 * @return
	 */
	public String getAttributeName() {
		return AttributeName;
	}

	/**
	 * @return
	 */
	public Integer getUnitId() {
		return unitId;
	}

	/**
	 * @return
	 */
	public Integer getValue() {
		return value;
	}

	/**
	 * @param string
	 */
	public void setAttributeName(String string) {
		AttributeName = string;
	}

	/**
	 * @param integer
	 */
	public void setUnitId(Integer integer) {
		unitId = integer;
	}

	/**
	 * @param integer
	 */
	public void setValue(Integer integer) {
		value = integer;
	}

	}